package com.ysy.logistics.mapper.supplier;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ysy.logistics.entities.supplier.SupOrder;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/25 14:54
 **/
public interface SupOrderMapper extends BaseMapper<SupOrder> {
    Page<SupOrder> selectByPage(@Param("page") Page<SupOrder> page, @Param("criteria") SupOrder criteria);

    /**
     * 统计某一段时间采购金额
     * @param begin 开始
     * @param end 结束
     * @return
     */
    Long sumTotalPriceByDate(@Param("begin") String begin,@Param("end")String end);
}
